
.PHONY: clean install

SUBDIRS :=$(shell ls -l |grep '^d'|awk '{print $$NF}')

install:
	[ ! -d $(DESTDIR)/tests/ ] && mkdir -p -m 755 $(DESTDIR)/tests/
	cp -avrf ./case.yaml $(DESTDIR)/tests/
	for dir in $(SUBDIRS); do cp -avrf $$dir $(DESTDIR)/tests/; done

clean:
	mkdir -p -m 755 $(DESTDIR)/tests/
	rm -rf $(DESTDIR)/tests/*
